
set more off
cd "D:\Projects\HeterogeneousExternalities\"


import excel using "Output\SimulationWelfare.xlsx",clear
ren A tax
ren B gain
**********Reverse scaling from matlab**********
replace gain=gain*10000

*Gains stop after tax=14
replace tax = 25 if tax == 65535
drop if tax>20
replace gain=gain/1000000
replace tax=15 if tax==20
twoway line gain tax, ytitle("Efficiency Gains (Millions of $'s)", size(medlarge)) /*
*/ xtitle("Maximum Tax Increase ($'s)",size(large)) ylabel(,nogrid) xlabel(0(2)14,nogrid angle(45))







